package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.BrandDTO;
import com.leyou.item.entity.Brand;

import java.util.List;

public interface BrandService extends IService<Brand> {

    //根据分类id查询品牌
    List<BrandDTO> queryBrandByCategoryId(Long id);

    //分页查询
    PageDTO<BrandDTO> queryBrandByPage(String key,Integer page,Integer rows);

    //新增品牌
    void saveBrand(BrandDTO brandDTO);

    //修改品牌
    void updateBrand(BrandDTO brandDTO);

}
